package com.everest.tribalapp;

import android.os.Bundle;
import android.os.Handler;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.Window;

public class MainActivity extends Activity {
private Handler handler;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		MainActivity.this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_main);
		handler=new Handler();
		handler.postDelayed(runnable,5000);
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}
Runnable runnable=new Runnable()
{
	
	@Override
	public void run()
	{
		Intent intent=new Intent(getApplicationContext(),Login.class);
		startActivity(intent);
		MainActivity.this.finish();
	}
};
}
